package com.xgxf.server.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * ClassName: TestConstant
 * Package: com.xgxf.server.constant
 *
 * @Description:主观检测项常量
 * @Author: Anonymity
 * @CreateDate: 2024.02.27 - 17:29
 * Version: v1.0
 */
public class TestConstant {

    public static Map<Integer, Integer> numMap = new HashMap<Integer, Integer>() {
        {
            put(1, 58);
            put(2, 3);
            put(3, 6);
            put(4, 8);
            put(5, 2);
            put(6, 4);
        }
    };
    public static Map<Integer, String> nameMap = new HashMap<Integer, String>() {
        {
            put(1, "'主观查验'");
            put(2, "'初检测'");
            put(3, "'空载检测'");
            put(4, "'额载检测'");
            put(5, "'超载检测'");
            put(6, "'爬坡检测'");
        }
    };

    public static Map<Integer, String> columnMap = new HashMap<Integer, String>() {
        {
            put(1, "Subjective1");
            put(2, "Primary1");
            put(3, "Emptyload");
            put(4, "Frontalload");
            put(5, "Overload");
            put(6, "Climb");
        }
    };

    public static Map<Integer, String> objectiveNameMap = new HashMap<Integer, String>() {
        {
            put(1, "空载起最小作业高度");
            put(2, "空载起最大作业高度");
            put(3, "空载起最小电机控制电压");
            put(4, "空载起最大电机控制电压");
            put(5, "空载起最小压力");
            put(6, "空载起最大压力");
            put(7, "空载起平台偏摆量");
            put(8, "空载起最大振动量");
            put(9, "空载起坑洞检测结果");
            put(10, "空载起升时间");
            put(11, "空载起最小电机电流");
            put(12, "空载起最大电机电流");
            put(13, "空载落下降阀最小电压");
            put(14, "空载落下降阀最大电压");
            put(15, "空载落最小压力");
            put(16, "空载落最大压力");
            put(17, "空载落安全高度");
            put(18, "空载落最大振动量");
            put(19, "空载落坑洞检测结果");
            put(20, "空载下降时间");
            put(21, "空载行走最大振动量");
            put(22, "额载最小压力");
            put(23, "额载最大压力");
            put(24, "额载下沉量");
            put(25, "额载起升最大振动量");
            put(26, "额载起升时间");
            put(27, "额载最小电机电流");
            put(28, "额载最大电机电流");
            put(29, "额载下降时间");
            put(30, "额载下降最大振动量");
            put(31, "额载行走最大振动量");
            put(32, "额载左转向时间");
            put(33, "额载右转向时间");
            put(34, "低空低速行驶速度");
            put(35, "低空高速行驶速度");
            put(36, "低速刹车距离");
            put(37, "高速刹车距离");
            put(38, "高空低速行驶速度");
            put(39, "高空低速刹车距离");
        }
    };

    public static Map<Integer, String> subjectiveNameMap = new HashMap<Integer, String>() {
         {
            put(1, "工作平台延伸功能");
            put(2, "工作平台门自锁功能");
            put(3, "工作平台结构件");
            put(4, "工作平台围栏的安装和紧固");
            put(5, "工作平台的安全门");
            put(6, "说明书是否在说明书盒内");
            put(7, "工作平台标识张贴");
            put(8, "臂架总成安全支撑（空载）");
            put(9, "臂架总成结构件");
            put(10, "臂架总成的轴、轴承和挡圈");
            put(11, "臂架总成标识张贴");
            put(12, "底盘托盘功能");
            put(13, "底盘结构件");
            put(14, "底盘转向油缸连接");
            put(15, "底盘右驱动轮");
            put(16, "底盘左驱动轮");
            put(17, "底盘橡胶轮");
            put(18, "底盘配重安装");
            put(19, "底盘旋转或抽屉式油泵/电池盒");
            put(20, "底盘阀块安装");
            put(21, "底盘的覆盖件");
            put(22, "底盘起吊孔");
            put(23, "底盘标识张贴");
            put(24, "手动制动功能");
            put(25, "转向油缸连接");
            put(26, "液压油油位");
            put(27, "转向油缸管路连接");
            put(28, "电机和液压泵装配");
            put(29, "液压油管和油管接头");
            put(30, "液压油箱和箱盖");
            put(31, "回油过滤器");
            put(32, "起升油缸和阀");
            put(33, "液压接头和油管");
            put(34, "电池的电解液位");
            put(35, "电池的电解比重");
            put(36, "充电器");
            put(37, "计时器");
            put(38, "喇叭功能");
            put(39, "频闪灯");
            put(40, "电线接线柱");
            put(41, "下控控制台钥匙开关");
            put(42, "下控紧急停止按钮");
            put(43, "下控按钮的升降、使用功能（威卡）");
            put(44, "下控下降警告");
            put(45, "下控坑洞保护机构");
            put(46, "下控紧急拉线和应急下降阀");
            put(47, "下控控制程序");
            put(48, "下控电源总开关");
            put(49, "上控充电曲线与电池型号");
            put(50, "上控紧急停止按钮");
            put(51, "上控控制手柄的行驶、转向、升降功能");
            put(52, "上控下降三秒停顿");
            put(53, "上控自动低速切换");
            put(54, "上控手动快、慢速切换");
            put(55, "上控应急降落装置");
            put(56, "上控转向系统");
            put(57, "上控最大爬坡能力");
            put(58, "上控倾斜报警");
        }
    };

    public static Map<Integer, String> primaryNameMap = new HashMap<Integer, String>(){
        {
            put(1,"整机长度");
            put(2,"整机宽度");
            put(3,"整机高度");
        }
    };

    public static Map<Integer, String> emptyloadNameMap = new HashMap<Integer, String>(){
        {
            put(1,"控制手柄与控制方向一致，松开后自动回中位");
            put(2,"行走平稳，不得有抖动和油泵吸空等异常噪声");
            put(3,"机构运动是否正常，是否有阻滞现象和异常噪声");
            put(4,"连接件是否松动");
            put(5,"安全保护装置是否正常");
            put(6,"液压系统是否漏油");
        }
    };

    public static Map<Integer, String> frontalloadNameMap = new HashMap<Integer, String>(){
        {
            put(1,"结构件无塑形变形");
            put(2,"机构运动是否正常，是否有阻滞现象和异常噪声");
            put(3,"连接件是否松动");
            put(4,"动作是否平稳，是否有冲击，跳跃式升降现象");
            put(5,"安全保护装置是否正常");
            put(6,"液压系统是否漏油");
            put(7,"副平台全伸，平台均布1.1倍额载，进行升降，行走，转向动作，所有安全装置是否正常");
            put(8,"副平台全伸，副平台悬出主平台部分均布224Kg载荷,主平台左（右）侧1/4区域均布64Kg载荷，进行升降动作，所有受力构件：平台,臂架，车架无任何永久变形和开裂（空载）");
        }
    };

    public static Map<Integer, String> overloadNameMap = new HashMap<Integer, String>(){
        {
            put(1,"副平台全缩，115KG均布在副平台易倾翻端。检查是否能爬到25%斜坡");
            put(2,"副平台全缩，115KG均布在副平台易倾翻端。25%斜坡上，初始高度最大行驶速度进行下坡制动。制动距离小于0.79m");
        }
    };

    public static Map<Integer, String> climbNameMap = new HashMap<Integer, String>(){
        {
            put(1,"机构运动是否正常，是否有阻滞现象和异常噪声");
            put(2,"连接件是否松动");
            put(3,"安全保护装置是否正常");
            put(4,"液压系统是否漏油");
        }
    };

    public static Map<Integer,Map<Integer, String>> subjectiveCategoryMap = new HashMap<Integer, Map<Integer, String>>(){
        {
            put(1,subjectiveNameMap);
            put(2,primaryNameMap);
            put(3,emptyloadNameMap);
            put(4,frontalloadNameMap);
            put(5,overloadNameMap);
            put(6,climbNameMap);
        }
    };

}